﻿@using SmartStore.Web.Models.Profile;
@model ProfileInfoModel

<div class="profile-info-box row">
    <div class="user-details col-2 text-center">
        @{ Html.RenderPartial("Customer.Avatar", Model.Avatar); }
        @if (Model.LocationEnabled)
        {
            <div class="profile-stat">
                <span class="pr-1">@T("Profile.Country"):</span>
				<span class="profile-stat-value">@Model.Location</span>
            </div>  
        }
        @if (Model.PMEnabled)
        {
            <a class="btn btn btn-outline-info btn-flat button-pm mt-2" rel="nofollow" href='@Url.Action("Send", "PrivateMessages", new { id = Model.Id })'>
                <i class="fa fa-user"></i>
                <span>@T("Forum.PrivateMessages.PM")</span>
            </a>
        }
        
        @{ Html.RenderWidget("profile_page_info_userdetails"); }
    </div>

    <div class="user-stats col-10">
        <div class="title h4">
            @T("Profile.Statistics")
        </div>
        @if (Model.TotalPostsEnabled)
        {
            <div class="profile-stat">
                <span class="pr-1">@T("Profile.TotalPosts"):</span>
				<span class="profile-stat-value">@Model.TotalPosts</span>
            </div>         
        }
        @if (Model.JoinDateEnabled)
        {
            <div class="profile-stat">
                <span class="pr-1">@T("Profile.JoinDate"):</span>
				<span class="profile-stat-value">@Model.JoinDate</span>
            </div>
        }
        @if (Model.DateOfBirthEnabled)
        {
            <div class="profile-stat">
                <span class="pr-1">@T("Profile.DateOfBirth"):</span>
				<span class="profile-stat-value">@Model.DateOfBirth</span>
            </div>
        }

        @{ Html.RenderWidget("profile_page_info_userstats"); }
    </div>
</div>
